﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;

namespace Fayson.DAO
{
    public class VATypeDAO : IVATypeDAO
    {

        public void Add(BO.VAType vaType)
        {
            using (ISession session = NHibernateHelper.OpenSession())
            using (ITransaction transaction = session.BeginTransaction())
            {
                session.Save(vaType);
                transaction.Commit();
            }
        }

        public void Update(BO.VAType vaType)
        {
            throw new NotImplementedException();
        }

        public void Remove(BO.VAType vaType)
        {
            throw new NotImplementedException();
        }

        public BO.VAType GetById(int id)
        {
            throw new NotImplementedException();
        }

        public BO.VAType GetByName(string name)
        {
            throw new NotImplementedException();
        }
    }
}
